package thinkinginjava;


public class CountingGenerator {
	
	public static void main(String[] args) {
		int x = 2;
		int y = 3;
		func(x, y);
		System.out.println(x);
		System.out.println(y);
		
		Integer m = new Integer(4);
		Integer n = new Integer(5);
		func(m, n);
		System.out.println(m);
		System.out.println(n);
	}

	private static void func(int x, int y) {
		x = 4;
		y = 5;
	}
	
	private static void func(Integer x, Integer y) {
		x = 7;
		y = 8;
	}
	
}
